package com.xiaoxiang.text.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoxiang.text.entity.Dynamic;

import java.util.List;

/**
 * (Dynamic)表服务接口
 *
 * @author haha
 * @since 2022-03-22 13:16:47
 */
public interface DynamicService extends IService<Dynamic> {

    List<Dynamic> getRecommendList(Integer size);

    List<Dynamic> pageList(Page<Dynamic> page, QueryWrapper<Dynamic> dynamicQueryWrapper);

    boolean like(Long dynamicId, Long userId);

    boolean cancelLike(Long dynamicId, Long userId);

    boolean browse(Long dynamicId, Long userId);

    boolean comment(Long dynamicId, Long userId);
}
